ListView with Progressive Lookup

Description

The designer created this dialog with the List View Genie.

images/XD_Progressive_Lookup.gif

This Xdialog has 2 controls: a text box that accepts a lastname value and a list view that shows the records that match the full or partial lastname. To create this Xdialog:

  1. Enter the variable name for the text box.

  2. Select "Text Box" from the Style list.

  3. Enter the variable name for the list view control.

  4. Select "List View Control" from the Style list and click Define List View Control.

  5. In the Data Selection > Populate method list select "Prepopulate from Data Source".

  6. Select "DBF Table" in the Data Selection > Data Source list.

  7. Select the table in the Data Selection > Table name list.

  8. Click the '...' to select the fields to display in the Data Selection > Field list control.

  9. Select the field to return in the Data Selection > field to Return list.

  10. Click the '...' button in the Data Selection > Arguments field to display the Define Arguments dialog box.

  11. Click Insert New Argument.

  12. Enter the name of the argument into the Argument Definition > Name field.

  13. Select "Character" in the Argument Definition > Data type list.

  14. Select "Get value from variable" in the Argument Definition > Get argument value from list.

  15. Click the '...' button in the Variable > Variable field to display the Select Variable dialog box.

  16. Select the variable defined for the text box and click OK > OK.

  17. Click the '...' button in the Data Selection > Filter/Where Clause field to display the Expression Builder dialog box.

  18. Enter the following expression. This expression says that the left portion of the lastname field should match the argument created in step 12.

    left(lastname, len(:argLastname)) = :argLastname
  19. Enter lastname into the Data Selection > Order field.

  20. Select the field to return in the Data Selection > field to Return list.

  21. Click OK to continue with the action script definition.

Limitations

Desktop applications only.

See Also